package com.example.springmybatis.mapper;

import com.example.springmybatis.entity.Videos;
import com.example.springmybatis.entity.Videoscategory;
import com.example.springmybatis.entity.feature;
import com.example.springmybatis.entity.medal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface Featuremapper {
    @Select("select * from feature")
    List<feature> findall();
    @Select("select * from medal")
    List<medal> findmedalall();
    @Select("select * from features")
    List<feature> findfeatures();
    @Select("select * from videos")
    List<Videos> findVideo();
    @Select("select CategoryName,VideoID_category from videocategories")
    List<Videoscategory> findCategory();
}
